package top.kaoshanji.p2ch16a;

/**
 * 代码清单-p2ch16a-180页a：父亲类
 * @author kaoshanji
 * ^_^
 * create time 2025/3/23 18:38
 */
public class Father implements IHandler {

    // 未出嫁的女儿来请示父亲
    @Override
    public void handleMessage(IWomen women) {
        System.out.println("女儿的请求是：" + women.getRequest());
        System.out.println("父亲的答复是：同意");
    }

}
